package cn.com.lsjz.commons.result;

/**
 * 封装的请求结果返回值
 * @author liucan
 *
 */
public class ResultModel {

	private boolean success;
	
	private Object data;
	
	private String message;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public ResultModel() {
		super();
	}

	public ResultModel(boolean success, Object data, String message) {
		super();
		this.success = success;
		this.data = data;
		this.message = message;
	}
	
	public ResultModel(boolean success, String message) {
		super();
		this.success = success;
		this.message = message;
	}

	@Override
	public String toString() {
		return "ResultModel [success=" + success + ", data=" + data + ", message=" + message + "]";
	}
	
}
